<script>
	import {
		mapMutations
	} from 'vuex';
	import {
		getunReadMsg
	} from '@/api/api.js';
	export default {
		data() {
			return {
				timer: ''
			}
		},
		methods: {
			...mapMutations(['userLogin']),

		},
		onLaunch: function() {
			let userInfo = uni.getStorageSync('userInfo') || '',
				_this = this;
			if (userInfo?.id) {
				uni.getStorage({
					key: 'userInfo',
					success(res) {
						_this.userLogin(res.data)
					}
				})
				//获取未读消息列表


			}

		},
		onShow: function() {
			
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
    .style_button{
		text-align: center;
		height:100rpx;
		line-height:100rpx;
		font-size:34rpx;
		border-radius:10rpx;
		
	}
	

	.content-box {
		padding: 40rpx;

		&-title {
			font-size: 34rpx;
			color: $base-color;
			position: relative;
			display: flex;
			align-items: center;

			.icon-icon-test {
				font-weight: bold;
				font-size: 66rpx;
				color: $base-color;
			}
		}
	}
</style>